<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Horario
 *
 * @author katerin y familia
 */
class Horario {
    var $dia;
    var $hora;
    var $valor;

    public function Actualizar(){

    }

    public function ExisteHorario(){
        $conexion = ObtenerConexion();
        $statement = mysql_query("SELECT cod_docente FROM tblDocentes WHERE cod_docente=$this->IdDocente",$conexion);
        $result = false;
        if(mysql_num_rows($statement) > 0){
            $result = true;
        }
        mysql_free_result($statement);
        mysql_close($conexion);
        return $result;
    }

}
?>
